package org.example.mediator;

import java.util.ArrayList;
import java.util.List;

public class ChatRoomA implements ChatRoom{
    List<User> userList = new ArrayList<>();
    @Override
    public void sendMsg(int userId, String message) {
        System.out.println("user chatA send msg "+userId+":"+message);
    }

    @Override
    public void addUser(User user) {
        userList.add(user);
    }
}
